<div class="layui-form-item">
  <label class="layui-form-label"><tip>{$value['desc']|default=''}</tip></label>
  <div class="layui-input-block">
    <div>
    {if $value['value']}
      {foreach $value['value']['key'] as $ke=>$va}
        {if $ke==0}
          <div class="layui-row">
            <div class="layui-form-mid">键：</div><input class="layui-input layui-input-inline" style="width: 100px" name="{$value['name']}[key][]" value="{$va}">
            <div class="layui-form-mid">值：</div><input class="layui-input layui-input-inline" style="width: 150px" name="{$value['name']}[value][]" value="{$value['value']['value'][$ke]}">
            <div class="layui-form-mid"><input type="button" data-type="tianjia" data-value="{$value['name']|default=''}" data-index="{$value['index']|default=0}" class="layui-btn layui-btn-sm layui-btn-primary layui-border-blue" value="+"></div>
          </div>
        {else}
          <div class="layui-row">
            <div class="layui-form-mid">键：</div><input class="layui-input layui-input-inline" style="width: 100px" name="{$value['name']}[key][]" value="{$va}">
            <div class="layui-form-mid">值：</div><input class="layui-input layui-input-inline" style="width: 150px" name="{$value['name']}[value][]" value="{$value['value']['value'][$ke]}">
            <div class="layui-form-mid"><input type="button" data-type="jian"  class="layui-btn layui-btn-sm layui-btn-primary layui-border-red" value="-"></div>
          </div>
        {/if}
      {/foreach}
    {else}
    <div class="layui-row">
      <div class="layui-form-mid">键：</div><input class="layui-input layui-input-inline" style="width: 100px" name="{$value['name']}[key][0]" value="">
      <div class="layui-form-mid">值：</div><input class="layui-input layui-input-inline" style="width: 150px" name="{$value['name']}[value][0]" value="">
      <div class="layui-form-mid"><input type="button" data-type="tianjia" data-value="{$value['name']|default=''}" data-index="0" class="layui-btn layui-btn-sm layui-btn-primary layui-border-blue" value="+"></div>
    </div>
    {/if}
    </div>
    <div><tip>{$value['tagging']|default=''}</tip></div>
  </div>
</div>